package com.qys.livesMall.finance.dao;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qys.livesMall.finance.model.entity.shop.FinanceShopAccount;

import java.math.BigDecimal;
import java.util.List;

public interface FinanceShopAccountDao extends IService<FinanceShopAccount> {

    FinanceShopAccount getByUserId(Long userId);

    List<FinanceShopAccount> getByUserIds(List<Long> userIds);

    FinanceShopAccount getByShopId(Long shopId);

    List<FinanceShopAccount> liatByShopIds(List<Long> shopIds);


    BigDecimal getTotalBalance(Integer userSysType);
    List<Long> listByUserIds(List<Long> userIds,BigDecimal minBalance,BigDecimal maxBalance);

    List<Long> listShopIdByLessBalance(List<Long> shopIds, BigDecimal balance);
}
